package com.lsec.springbootinit.mapper;

import com.lsec.springbootinit.model.entity.SysMenu;
import com.lsec.springbootinit.mybatis.mapper.BaseMapperX;

import java.util.List;

/**
 * 菜单表 Mapper
 *
 * @author: Cherry
 * @date: 2023-06-30 15:24
 */

public interface MenuMapper extends BaseMapperX<SysMenu> {

    /**
     * 查询所有可用的菜单列表
     *
     * @param userId 用户id
     * @return {@link List}<{@link SysMenu}>
     */
    List<SysMenu> findPermsListByUserId(Long userId);

}
